﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace GeradorVersao
{
    public enum Cliente
    {
        [Description(@"\7Setembro\")]
        SETESETEMBRO,
        [Description(@"\AABBCs\")]
        AABBCS,
        [Description(@"\AABBFortaleza\")]
        AABBFORTALEZA,
        [Description(@"\AABBPoa\")]
        AABBPOA,
        [Description(@"\AABBSM\")]
        AABBSM,
        [Description(@"\AISM")]
        AISM,
        [Description(@"\Alianca\")]
        ALIANCASC,
        [Description(@"\APROS\")]
        APROS,
        [Description(@"\Aquatico\")]
        AQUATICO,
        [Description(@"\Arranca\")]
        ARRANCA,
        [Description(@"\ATC")]
        ATC,
        [Description(@"\BelaVista\")]
        BELAVISTA,
        [Description(@"\CampestrePF\")]
        CAMPESTREPF,
        [Description(@"\ComercialPF\")]
        COMERCIALPF,
        [Description(@"\ComercialSA\")]
        COMERCIALSA,
        [Description(@"\Corintians\")]
        CORINTIANS,
        [Description(@"\CountryPOA\")]
        COUNTRYPOA,
        [Description(@"\CRDores\")]
        CRDORES,
        [Description(@"\CTCLajeado\")]
        CTCLAJEADO,
        [Description(@"\CUC\")]
        CUC,
        [Description(@"\Forza\")]
        FORZA,
        [Description(@"\Gaucho\")]
        GAUCHO,
        [Description(@"\GFronteira\")]
        GFRONTEIRA,
        [Description(@"\GNU\")]
        GNU,
        [Description(@"\JuvenilCaxias\")]
        JUVENILCS,
        [Description(@"\JuvenilPF\")]
        JUVENILPF,
        [Description(@"\Lajeadense\")]
        LAJEADENSE,
        [Description(@"\Lindoia\")]
        LINDOIA,
        [Description(@"\OscarPithan\")]
        OSCARPITHAN,
        [Description(@"RecreioCruzeiro")]
        RECCRUZEIRO,
        [Description(@"\RioBranco\")]
        RIOBRANCO,
        [Description(@"\RioGrandeYachtClub\")]
        RGYC,
        [Description(@"\Samborjense\")]
        SAMBORJENSE,
        [Description(@"\Sentinela\")]
        SENTINELA,
        [Description(@"\Socepe\")]
        SOCEPE,
        [Description(@"\RecreativaIjui\")]
        SRIJUI,
        [Description(@"\Sogi\")]
        SOGI,
        [Description(@"\Sombrio\")]
        SOMBRIO,
        [Description(@"\Sova\")]
        SOVA,
        [Description(@"\Teresopolis\")]
        TERESOPOLIS,
        [Description(@"\Tiaraju\")]
        TIARAJU

    }

    public class Clientes
    {

        public static string GetEnumDescription(Enum value)
        {
            FieldInfo fi = value.GetType().GetField(value.ToString());

            DescriptionAttribute[] attributes =
                (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);

            if (attributes != null && attributes.Length > 0)
                return attributes[0].Description;
            else
                return value.ToString();
        }

    }
}
